package cn.yqn.mapper;

import cn.yqn.domain.MovieTicket;
import cn.yqn.dto.UserMovieDto;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author director
 * @since 2022-09-01
 */
@Mapper
public interface MovieTicketMapper extends BaseMapper<MovieTicket> {

    UserMovieDto selectUserMovieByUserIdAndMovieId(@Param("userId") Long userId, @Param("movieId") Long movieId);

    void insertUserMovie(UserMovieDto userMovieDto1);

    void updateUserMovie(UserMovieDto userMovieDto);
}
